package com.fw.dao;

import java.util.List;

import com.fw.model.Permission;

public interface PermissionDao {
	public Integer query_totalPermisssonDao(String sql);
	public List<Permission> query_allPermissonByPageDao(String sql, int firstPage,int maxPage);
	public boolean add_permissionDao(Permission permisson);
	public Permission query_permissionByName(Permission permission);
	public List<Permission> query_permissionForTypeDao(Permission permission);
	public Permission query_permissionByIdDao(Permission permission);
	public boolean update_permissionByIdDao(Permission permission);
	public boolean delete_permissionByIdDao(Permission permission);
}
